#ifndef DATEEDIT_H
#define DATEEDIT_H

#include <QDateEdit>
#include <QMouseEvent>
#include <QCalendarWidget>

class DateEdit: public QDateEdit
{
    Q_OBJECT
public:
    explicit DateEdit(QWidget *parent = 0);
private slots:
    void onCalendarClicked(const QDate&date);
protected:
    void contextMenuEvent(QContextMenuEvent* event);
private:
    QCalendarWidget calendar;
};

#endif // DATEEDIT_H
